﻿#include "TcpCodec_MEMSData.h"

#include "TcpCodec.h"

TcpCodec_MEMSData::TcpCodec_MEMSData()
{
setObjectName(getClassNameFirstLow<TcpCodec_MEMSData>());
}

TcpCodec_MEMSData::~TcpCodec_MEMSData()
{

}

void TcpCodec_MEMSData::decode(DataPackage_TcpCodec* dataPackageInfo_User)
{

}

TcpCodec* TcpCodec_MEMSData::getTcpCodec()const
{
  return tcpCodec;
}

TcpCodec_MEMSData* TcpCodec_MEMSData::setTcpCodec(TcpCodec* const tcpCodec)
{
  this->tcpCodec=tcpCodec;
  tcpCodec->addToCodecMap(TcpCodec_MEMSData::MEMSData,this);
  printInjection(this,tcpCodec);
  return this;
}

void TcpCodec_MEMSData::objectAutoInjection(QHash<QString,QObject*>* objMap)
{
setTcpCodec(getObjFromMap<TcpCodec>(objMap));
}
